package _17_函数式编程.Lambda._9_Lambda应用;

public class _9_3_Lambda_Runnable {

    public static void main(String[] args) {

        Thread thread = new Thread(
                new Runnable() {
                    @Override
                    public void run() {
                        System.out.println("Hello world");
                    }
                }
        );
        thread.start();

        Thread thread1 = new Thread(() -> System.out.println("Hello Lambda"));
        thread1.start();
    }

}
